<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <form th:action="@{/quizzes/save}" th:object="${quiz}" method="POST">
        <input type="text" placeholder="用户昵称" th:field="${quiz.name}">
        <select th:field="${quiz.stage}">
            <option th:value="解决">解决</option>
            <option th:value="未解决">未解决</option>
        </select>
        <input type="text" placeholder="问题" th:field="${quiz.question}">
        <textarea type="text" placeholder="解决方案" th:field="${quiz.solution}"></textarea>

        <button type="submit">提出问题或见解</button>
    </form>
</div>
</body>
</html>